/****************************************************************************
**
** Copyright (C) 2009-2010 Mist Poryvaev.
** All rights reserved.
** Contact: Mist Poryvaev (mist.poryvaev@gmail.com)
**
** This file is part of the RailWorm project.
**
****************************************************************************/

#include <QtGui>
#include <QtWebKit>
#include "mainwindow.h"
#include "connectrzd.h"

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	QObject::connect(&a, SIGNAL(aboutToQuit()), &a, SLOT(closeAllWindows()));
	QTextCodec::setCodecForTr(QTextCodec::codecForName("utf-8"));

	rzd::AddQuery("FirmTrains", "/isvp/public/pass?STRUCTURE_ID=1374");
	rzd::AddQuery("MainPage", "/isvp/public/pass/express?sheet=p62g60&action=submit&STRUCTURE_ID=735");
	rzd::AddQuery("StationSuggest", "/isvp/helpers/ru/ss.jsp?ff=e3form.src&railway_code=0&station_name=");
	rzd::AddQuery("RegisterPage", "https://ticket.rzd.ru/wps/portal/!ut/p/c5/04_SB8K8xLLM9MSSzPy8xBz9CP0os3gDA1NvI8cQtwAXg1BDI5NAS0djAwjQDwfpwFRhFGAAU4FV3jQYVd7Z3dHDxNzHwMDfKMzAwMjPNDjQIDTY2MDTGKYfO3A00PfzyM9N1S_Izg7yKHdUBACdHart/dl3/d3/L2dJQSEvUUt3QS9ZQnZ3LzZfMDA1SzJBVEZQRDBVMTI0UUQ2NDAwMDAwMDA!");
	rzd::AddQuery("Ticket_Safe", "https://ticket.rzd.ru/wps/portal/");
	rzd::AddQuery("Ticket", "http://ticket.rzd.ru/wps/portal/");

	MainWindow w;
	w.show();
	return a.exec();
}
